<?php defined('SYSPATH') or die('No direct script access.');

class Optin extends Track {

	protected $opt_in_type;
	protected $email_address;
	protected $dt_birth;
	protected $gender;
	protected $cep;
	protected $name;
	protected $file_name;

	public function __construct($opt_in_type, $email_address, $dt_birth, $gender, $cep, $name)
	{
		parent::__construct();
		$this->url = $this->url.'/optin';
		$this->file_name = $this->file_name.'.optin';
		$this->opt_in_type = $opt_in_type;
		$this->email_address = $email_address;
		$this->dt_birth = $dt_birth;
		$this->gender = $gender;
		$this->cep = $cep;
		$this->name = $name;
		$data = array(
			'opt_in_type' => $this->opt_in_type,
			'email_address' => $this->email_address,
			'dt_birth' => $this->dt_birth,
			'gender' => $this->gender,
			'cep' => $this->cep,
			'name' => $this->name,
			'file_name' => $this->file_name,
		);
		parent::doTrack($data);
	}
}